<?php
namespace Home\Controller;
use Think\Controller;

class CatController extends Controller{
    public function cat(){
        $cat_id = I('get.cat_id');
        $cat_goods = D('Admin/Goods')->field('goods_id,goods_name,thumb_img,shop_price,market_price,goods_img')->where('cat_id='.$cat_id)->select();
        $this->assign('hist',array_reverse(session('hist'),true));
        $this->assign('cat_goods',$cat_goods);
        $this->display();
    }
}
